<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
	<!-- Css -->
	<link rel="stylesheet" href="/Public/Fwadmin/Css/style.css">
	<link rel="stylesheet" href="/Public/Fwadmin/Css/uploadify.css" />
	<link rel="stylesheet" href="/Public/Fwadmin/Css/sweetalert2.min.css">
	

	<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
	<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
	<!--[if lt IE 9]>
		<script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.min.js"></script>
		<script src="http://cdn.bootcss.com/respond.js/1.3.0/respond.min.js"></script>
	<![endif]-->
	<title>站点管理系统后台中心</title>
</head>

<body>
	
	<div class="content">
		<section class="location">
			<i class="iconfont">&#xe60f</i> 位置：<a href="<?php echo U('Index/main');?>">管理首页</a> &gt; 网站设置
		</section>
		<ul class="nav-tabs clearfix">
			<li class="active">网站设置</li>
		</ul>
		<form method="post" action="" id="form">
			<input type="hidden" name="id" id="id" value="<?php echo ($Data["id"]); ?>" />
			<input type="hidden" name="class" id="class" value="<?php echo (CONTROLLER_NAME); ?>" />
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table">
				<tr>
					<th width="100">网站名称</th>
					<td><input type="text" name="name" id="name" class="form-control form-control-lg" value="<?php echo ($Data["name"]); ?>" /></td>
				</tr>
				<tr>
					<th>SEO标题</th>
					<td><input type="text" name="title" class="form-control form-control-lg" value="<?php echo ($Data["title"]); ?>" /></td>
				</tr>
				<tr>
					<th>SEO关键字</th>
					<td><input type="text" name="keywords" class="form-control form-control-lg" value="<?php echo ($Data["keywords"]); ?>" /></td>
				</tr>
				<tr>
					<th>SEO描述</th>
					<td><textarea name="description" class="form-control form-control-lg"><?php echo ($Data["description"]); ?></textarea></td>
				</tr>
				<tr>
					<th>电话</th>
					<td><input type="text" name="tel" class="form-control form-control-md" value="<?php echo ($Data["tel"]); ?>" /></td>
				</tr>
				<tr>
					<th>传真</th>
					<td><input type="text" name="fax" class="form-control form-control-md" value="<?php echo ($Data["fax"]); ?>" /></td>
				</tr>
				<tr>
					<th>手机</th>
					<td><input type="text" name="phone" class="form-control form-control-md" value="<?php echo ($Data["phone"]); ?>" /></td>
				</tr>
				<tr>
					<th>QQ</th>
					<td><input type="text" name="qq" class="form-control form-control-md" value="<?php echo ($Data["qq"]); ?>" /></td>
				</tr>
				<tr>
					<th>Email</th>
					<td><input type="text" name="email" class="form-control form-control-md" value="<?php echo ($Data["email"]); ?>" /></td>
				</tr>
				<tr>
					<th>地址</th>
					<td><input type="text" name="address" class="form-control form-control-md" value="<?php echo ($Data["address"]); ?>" /></td>
				</tr>
				<tr>
					<th>其他</th>
					<td><input type="text" name="other" class="form-control form-control-md" value="<?php echo ($Data["other"]); ?>" /></td>
				</tr>
				<tr>
					<th>ICP备案</th>
					<td><input type="text" name="icp" class="form-control form-control-md" value="<?php echo ($Data["icp"]); ?>" /></td>
				</tr>
				<tr>
					<th>统计代码</th>
					<td><textarea name="statistics" class="form-control form-control-lg"><?php echo ($Data["statistics"]); ?></textarea></td>
				</tr>
				<tr>
					<th>版权信息</th>
					<td><textarea name="copyright" class="form-control form-control-lg"><?php echo ($Data["copyright"]); ?></textarea></td>
				</tr>
			</table>
			<div class="well"><button type="submit" class="btn btn-theme" id="submit_save">保 存</button></div> 
		</form>
	</div>

	<!-- Javascript -->
	<script src="/Public/Fwadmin/Js/Jquery.min.js"></script>
	<script src="/Public/Fwadmin/Js/jquery.uploadify.min.js"></script>
	<script src="/Public/Fwadmin/Js/sweetalert2.min.js"></script>
	<script src="/Public/Fwadmin/Js/laydate.js"></script>
	<script src="/Editor/ueditor.config.js"></script>
	<script src="/Editor/ueditor.all.js"></script>
	<script src="/Public/Fwadmin/Js/jQuery.Hz2Py-min.js"></script>
	<script src="/Public/Fwadmin/Js/Action.js"></script>
	<script>
		var is_login = <?php echo ($is_login); ?>;
		if(is_login == 0){
			swal({
				title: "您尚未登录或登录超时",
				text: "",
				type: 'error',
				showCancelButton: false,
				confirmButtonText: '确定'
			}).then(function() {
				if(top.location !== self.location) { 
					top.location = "<?php echo U('/Fwadmin/login');?>";
				}else{
					location.href = "<?php echo U('/Fwadmin/login');?>";
				}
			});
		}
	</script>
	
</body>
</html>